package daylight;

import java.io.*;

//字符缓冲流
public class Writer05 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("DAY12\\aa.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("DAY12\\cc.txt"));
        int ch ;
        while ((ch = br.read())!=-1){
            bw.write(ch);
            bw.flush();
        }
        /****
         *
         */
        int len;
        char[] chars = new char[1024];
        while ((len = br.read(chars))!=-1){
            bw.write(chars,0,len);
            bw.flush();
        }
    }
}
